package java面向对象.继承.方法的重写;

public class Dog extends Animal{
    private String color;
    public Dog(String color, int age, String name) {
        super(name,age);
        this.color = color;

    }
    void shout(){

        System.out.println("汪汪汪");
    }
    public String show()
    {
       return  super.show()+color;
    }
}
